<!--侧边功能栏-->
<ul class="nav nav-list">

    <li>
        <a href="" class="dropdown-toggle">
            <i class="menu-icon fa fa-tachometer"></i> <span class="menu-text"> 一期抢码功能 </span>
            <i class="arrow fa"></i>
        </a>
        <ul class="submenu  nav-hide" style="display: none;">
            
            <li>
                <a href="../rush/index.html">
                    <i class="menu-icon fa fa-caret-right"></i> 活动管理
                </a>
            </li>
            <li>
                <a href="../rush/record.html">
                    <i class="menu-icon fa fa-caret-right"></i> 中奖名单
                </a>
            </li>
        </ul>
    </li>
    <li>
        <a href="" class="dropdown-toggle">
            <i class="menu-icon fa fa-tachometer"></i> <span class="menu-text"> 二期信息管理 </span>
            <i class="arrow fa"></i>
        </a>
        <ul class="submenu  nav-hide" style="display: none;">
            <li>
                <a href="../rush/editConfig.html">
                    <i class="menu-icon fa fa-caret-right"></i> 信息配置
                </a>
            </li>
            <li>
                <a href="../rush/user.html">
                    <i class="menu-icon fa fa-caret-right"></i> 用户列表
                </a>
            </li>
            <li>
                <a href="../rush/activity.html">
                    <i class="menu-icon fa fa-caret-right"></i> 报名活动
                </a>
            </li>
            <li>
                <a href="../rush/task.html">
                    <i class="menu-icon fa fa-caret-right"></i> 报名任务
                </a>
            </li>
            <li>
                <a href="../rush/scoreRecord.html">
                    <i class="menu-icon fa fa-caret-right"></i> 积分记录
                </a>
            </li>
            <li>
                <a href="../rush/import.html">
                    <i class="menu-icon fa fa-caret-right"></i> 积分导入
                </a>
            </li>
        </ul>
    </li>
    <li>
        <a href="" class="dropdown-toggle">
            <i class="menu-icon fa fa-tachometer"></i> <span class="menu-text"> 二期礼品管理 </span>
            <i class="arrow fa"></i>
        </a>
        <ul class="submenu  nav-hide" style="display: none;">
            
            <li>
                <a href="../rush/exchange.html">
                    <i class="menu-icon fa fa-caret-right"></i> 礼品列表
                </a>
            </li>
            <li>
                <a href="../rush/welfare.html">
                    <i class="menu-icon fa fa-caret-right"></i> 新手福利
                </a>
            </li>
            <li>
                <a href="../rush/exchangeRecord.html">
                    <i class="menu-icon fa fa-caret-right"></i> 兑换记录
                </a>
            </li>
        </ul>
    </li>
    <li>
        <a href="" class="dropdown-toggle">
            <i class="menu-icon fa fa-tachometer"></i> <span class="menu-text"> 二期抽奖管理 </span>
            <i class="arrow fa"></i>
        </a>
        <ul class="submenu  nav-hide" style="display: none;">
            
            <li>
                <a href="../rush/lottery.html">
                    <i class="menu-icon fa fa-caret-right"></i> 活动管理
                </a>
            </li>
            <li>
                <a href="../rush/lotteryRecord.html">
                    <i class="menu-icon fa fa-caret-right"></i> 抽奖记录
                </a>
            </li>
        </ul>
    </li>
    <li>
        <a href="" class="dropdown-toggle">
            <i class="menu-icon fa fa-tachometer"></i> <span class="menu-text"> 权限管理 </span>
            <i class="arrow fa"></i>
        </a>
        <ul class="submenu  nav-hide" style="display: none;">
            
            <li>
                <a href="../rush/adminList.html">
                    <i class="menu-icon fa fa-caret-right"></i> 管理员列表
                </a>
            </li>
        </ul>
    </li>
</ul>

<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
    <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
</div>

<script type="text/javascript">
    try {
        ace.settings.check('sidebar', 'collapsed')
    } catch (e) {
    }

    // 左边栏菜单收缩，箭头方向改变
    function menuToggleEvent(){

        var _dropDownToggleArr = $('.dropdown-toggle');// 所有有 下拉菜单的 菜单项

        for( var i=0; i < _dropDownToggleArr.length; i++ ){

            var $temp = _dropDownToggleArr.eq(i);

            //if( $temp.nextAll('.submenu').is(':visible') ){
            if( $temp.parent('li').is('.open') ){ // 父亲<li> 展开
                $temp.children('.arrow').removeClass('fa-angle-right').addClass('fa-angle-down');
            }else{
                $temp.children('.arrow').removeClass('fa-angle-down').addClass('fa-angle-right');
            }
        }

        (function($){

            var _dropDownToggleArr = $('.dropdown-toggle');
            _dropDownToggleArr.each( function(){
                $(this).click( function(){
                    // 延迟一段时间，等到动画结束后再改变箭头方向
                    setTimeout( menuToggleEvent, 100 );// 左边栏菜单收缩，箭头方向改变
                });
            })

        })( jQuery );
    }



</script>
